package com.joymart.qualification.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.joymart.common.model.Range;
import com.joymart.user.model.BusinessRole;
import com.joymart.user.model.CachedUser;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 批发商和代理的保级评估
 */
@Data
public abstract class RetainEvaluation {

    private String id;
    private String userId;
    @Transient
    @JsonIgnore
    private CachedUser evaluateUser;
    private BusinessRole targetRole;
    // 评估依据区间
    private Range range;

    public abstract boolean isPassed();


}
